Caption = "The evaluation object code runs MUCH slower than the object code that may be purchased. Use TEST.EXE for EXACT size and speed measurements."
Height = 615
Left = 240
TabIndex = 17
Top = 4320
Width = 4575
End
Begin Label dlabel
Caption = "Decompressed File:"
Height = 255
Left = 360
TabIndex = 16
Top = 960
Width = 1815
End
Begin Label olabel
Caption = "Compressed File:"
Height = 255
Left = 360
TabIndex = 15
Top = 600
Width = 1575
End
Begin Label ilabel
Caption = "Input File:"
Height = 255
Left = 360
TabIndex = 14
Top = 240
Width = 975
End
Begin Label size
Height = 255
Left = 360
TabIndex = 13
Top = 3840
Width = 2055
End
Begin Label progress
Height = 255
Left = 2760
TabIndex = 7
Top = 3840
Width = 2055
End
End
Dim continue As Integer
Dim bytes As Long
Dim start As Single
Sub Cancel_Click ()
continue = False
End Sub
Sub Compress_Click ()
Dim method As Integer
Dim i As Integer
If method1.Value Then method = CX_METHOD1
If method2.Value Then method = CX_METHOD2
If method3.Value Then method = CX_METHOD3
If methodc.Value Then method = CX_METHODC
If methodd.Value Then method = CX_METHODD
src$ = itext.Text
dst$ = ctext.Text
start_progress
i = cx_compress_file(dst$, src$, method, CX_MAX_BUFFER, CX_C_MAXTEMP, continue, bytes)